package com.clock.shop.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.clock.common.annotation.Excel;
import com.clock.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员对象 shop_member
 *
 * @author ruoyi
 * @date 2024-10-11
 */
public class ShopMember extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 会员的名字
     */
    @Excel(name = "会员的名字")
    private String memberName;

    /**
     * 会员电话
     */
    @Excel(name = "会员电话")
    private String memberPhone;

    /**
     * 所属店铺
     */
    @Excel(name = "所属店铺")
    private String shopName;

    /**
     * 会员起始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date memberTimeStart;

    /**
     * 会员生日
     */
    @Excel(name = "会员生日")
    private String memberBirthday;

    /**
     * 会员等级
     */
    @Excel(name = "会员等级")
    private Integer memberLevel;

    /**
     * 会员头像
     */
    @Excel(name = "会员头像")
    private String memberPic;

    /**
     * 会员到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date memberTimeOver;

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setMemberTimeStart(Date memberTimeStart) {
        this.memberTimeStart = memberTimeStart;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Date getMemberTimeStart() {
        return memberTimeStart;
    }

    public void setMemberBirthday(String memberBirthday) {
        this.memberBirthday = memberBirthday;
    }

    public String getMemberBirthday() {
        return memberBirthday;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberPic(String memberPic) {
        this.memberPic = memberPic;
    }

    public String getMemberPic() {
        return memberPic;
    }

    public void setMemberTimeOver(Date memberTimeOver) {
        this.memberTimeOver = memberTimeOver;
    }

    public Date getMemberTimeOver() {
        return memberTimeOver;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("memberId", getMemberId())
                .append("memberName", getMemberName())
                .append("memberPhone", getMemberPhone())
                .append("shopName", getShopName())
                .append("memberTimeStart", getMemberTimeStart())
                .append("memberBirthday", getMemberBirthday())
                .append("memberLevel", getMemberLevel())
                .append("memberPic", getMemberPic())
                .append("memberTimeOver", getMemberTimeOver())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
